package cn.cdeden.knowledge.service;

import cn.cdeden.common.core.utils.page.TableDataInfo;
import cn.cdeden.knowledge.domain.FilesRecentlyViewed;
import cn.cdeden.knowledge.domain.dto.FilesRecentlyDto;
import cn.cdeden.knowledge.domain.dto.FilesRecentlyViewedQueryParam;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Pageable;

import java.util.Set;

public interface FilesRecentlyViewedService extends IService<FilesRecentlyViewed>{


    boolean deleteByIds(Set<String> ids , String type);

    /**
     * 查询数据分页
     * @param query 条件
     * @param pageable 分页参数
     * @return PageInfo<FilesRecentlyViewedDto>
     */
    TableDataInfo<FilesRecentlyDto> queryAll(FilesRecentlyViewedQueryParam query, Pageable pageable);

    //企业文件查看
    TableDataInfo<FilesRecentlyDto> queryEnterpriseFile(FilesRecentlyViewedQueryParam query, Pageable pageable);

    //团队文件查看
    TableDataInfo<FilesRecentlyDto> queryTeamFile(FilesRecentlyViewedQueryParam query, Pageable pageable);
}
